#!/bin/bash
#author tzl
if [[ -n $1 ]];then 
	arg=$1
else
	arg=`date "+%Y-%m-%d"`
fi
count_session2=`grep "message statistics" cc-session2/session?/smlog.log | grep $arg | wc -l`
count_sm1=`grep "message statistics" cc-sm1/session?/smlog.log | grep $arg | wc -l`
echo "message statistics($arg):"
echo "session2 message count : $count_session2"
echo "sm1 message count: $count_sm1"
echo "all message count : `expr $count_session2 + $count_sm1`"
